package experiment;


import java.util.Scanner;

public class ExperimentFour {
    public static void main(String[] args) {
        EmployeeList employeeList = new EmployeeList();
        User user = login();
        while(true){
            int choice = user.menu();
            if(choice == 0){
                System.out.println("谢谢使用");
                System.exit(0);
            }
            user.doOperation(choice,employeeList);
        }
    }
    public static User login(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的称呼：");
        String name = scanner.nextLine();
        return new User(name);
    }
}
